import { Injectable } from '@nestjs/common';
import { Connection } from "typeorm";

@Injectable()
export class AppService {
  constructor(private readonly connect: Connection){

  }
  getHello(): string {
    this.connect.query("select * from nideshop_ad").then((res)=>{
      console.log(res);
    }).catch((err)=>{
      console.log('err');
    });
    return 'Hello World!';
  }
}
